package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Address;
import com.pojo.RisingPrices;
import com.pojo.SysUser;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface SysUserDao extends BaseMapper<SysUser> {

    /*减少*/
    @Update("update sys_user set lalance=lalance-#{money} where id=#{id};")
    public void Deduct(int id,int money);

//    根据姓名找头像位置
    @Select("select head_url from sys_user where username=#{username}")
 public String findUrlByName(String username);
}

